import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';

import '../../data/models/carousel.dart';
import '../../data/repositories/home_repository.dart';

final homeRepositoryProvider = Provider<HomeRepository>((ref) {
  return HomeRepository();
});

final carouselProvider = FutureProvider<List<Carousel>>((ref) async {
  return ref.watch(homeRepositoryProvider).fetchCarouselList();
});
